package com.insideClass.exceptions;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

class MyException extends Exception{
   public MyException(){

   }
   public MyException(String msg){
       super(msg);
   }
}


/**
 * @author 13699
 */
public class FullConstructors {
    public static void f() throws MyException{
        System.out.println("throwing MyException from f()");
        throw new MyException();
    }
    public static void g() throws MyException{
        System.out.println("throwing MyException from g()");
        throw new MyException();
    }

    public static void main(String[] args) {
        try {
            f();
        } catch (MyException e) {
            e.printStackTrace(System.out);
        }
        try {
            g();
        } catch (MyException e) {
            e.printStackTrace(System.out);
        }

    }
}
